package com.zfei.gfb.query.h5;

import com.zfei.gfb.bean.Const;
import com.zfei.gfb.bean.Page;
import com.zfei.gfb.bean.Status;
import com.zfei.gfb.bean.StatusException;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author fgh
 */
public class H5GoodsQuery extends Page {

    @ApiModelProperty("物品名称")
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static boolean checkType(Integer saleType) {
        if (saleType == null) {
            return false;
        }
        return saleType == Const.SALE_TYPE_ON || saleType == Const.SALE_TYPE_OFF;
    }
}

